package com.crrc.yzt.demo.fragment

import android.os.Bundle
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import com.bumptech.glide.Glide
import com.crrc.yzt.demo.blue.R
import com.crrc.yzt.demo.blue.databinding.FragmentEnergyBinding


/**
 */
class EnergyFragment : Fragment() {


    override fun onCreateView(
        inflater: LayoutInflater, container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {

        val binding = FragmentEnergyBinding.inflate(layoutInflater)

        Glide.with(this)
            .asGif()
//            .load(resources.assets.open("nengliang2.gif"))
            .load(R.raw.nengliang)
            .into(binding.ivImage)



        return binding.root
    }


    companion object {

        @JvmStatic
        fun newInstance() =
            EnergyFragment().apply {

            }
    }
}